package com.lagou.module4.service;

import com.lagou.module4.dao.UserDao;
import com.lagou.module4.factory.UserDaoFactory;
import com.lagou.module4.model.User;


public class UserService {
    private UserDao userDao;

    public UserService(){
        this.userDao= UserDaoFactory.getUserDao();
    }

    public User userLoginService(User user){
        return userDao.userLogin(user);
    }
}
